package drds.server.route.route_strategy;

import java.sql.SQLNonTransientException;

import drds.server.cache.LayeredCache;
import drds.server.config.model.Schema;
import drds.server.route.Route;
import drds.server.server.SessionContext;

/**
 * 路由策略接口
 */
public interface IRouteStrategy {
	public Route route(SessionContext sessionContext, Schema schema, String sql, int sqlType, LayeredCache layeredCache) throws SQLNonTransientException;
}
